//
//  selectbuton.m
//  CarTown
//
//  Created by xionghao on 15/9/11.
//  Copyright (c) 2015年 熊浩. All rights reserved.
//

#import "selectbuton.h"

@implementation selectbuton

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/
-(CGRect)imageRectForContentRect:(CGRect)contentRect{
    CGFloat x=contentRect.size.width-5;
    CGFloat y=(contentRect.size.height-4.5)*0.5;
    CGFloat width=5;
    CGFloat height=4.5;
    return CGRectMake(x, y, width, height);
}
-(CGRect)titleRectForContentRect:(CGRect)contentRect{
    CGFloat x=0;
    CGFloat y=0;
    CGFloat width=contentRect.size.width-5;
    CGFloat height=contentRect.size.height;
    return CGRectMake(x, y, width, height);
}

@end
